/*************************************************************************
  > File Name: CountPushbackTime.cpp
  > Author: LiangHuaxiao
  > Mail: 1184903633@qq.com
  > Created Time: Fri 03 Feb 2023 04:19:05 PM
 ************************************************************************/

#include <iostream>
#include <vector>
using namespace std;
int main() {
   int times = 100000000;
   std::vector<int> t;
   double start, eend;
   start = clock(); //程序开始计时
   for(int i = 1; i < times; i++) {
      t.push_back(i);
   }
   eend = clock(); //程序结束用时
   double endtime = (double)(eend - start) / CLOCKS_PER_SEC;
   cout << "Total time:" << endtime << endl; // s为单位
}
